CXX = g++

INC = -I../../lib
LIBS = -lboost_thread-gcc-mt
CXXFLAGS = -pthread -g $(INC)

OBJS = IreumServer.o RandomClass.o
SRCS = $(OBJS:.o=.cpp) 

TARGET = IreumServer

%.o : %.cpp
	$(CXX) -c $(CXXFLAGS) $< -o $@

.PHONY: all dep clean new

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CXX) -o $@ $(OBJS) $(LIBS)

dep:
	$(CXX) -M $(CXXFLAGS) $(SRCS)

clean:
	rm -rf $(OBJS) $(TARGET) core

new: 
	$(MAKE) clean 
	$(MAKE) 
